package org.jeecg.modules.jxc.basicdata.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.jxc.basicdata.entity.Goods;
import org.jeecg.modules.jxc.basicdata.mapper.GoodsMapper;
import org.jeecg.modules.jxc.basicdata.service.IGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yaorange
 * @since 2021-10-27
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {
    @Autowired
    private GoodsMapper goodsMapper;


    @Override
    public IPage<Goods> getGoodsAndType(Page<Goods> page, String key) {
        return goodsMapper.getGoodsAndType(page,key);
    }

    @Override
    public IPage<Goods> treeGetGoods(Page page,Integer goodTypeId) {

        return goodsMapper.treeGetGoods(page,goodTypeId);
    }
}
